<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 206 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts206p0{position:absolute;left:106px;top:97px;}
 .ts206p1{position:absolute;left:352px;top:97px;}
 .ts206p3{position:absolute;left:665px;top:97px;}
 .ts206p7{position:absolute;left:106px;top:113px;}
 .ts206p8{position:absolute;left:706px;top:1026px;}
 .ts206p9{position:absolute;left:331px;top:1044px;}
 .ts206p13{position:absolute;left:335px;top:146px;}
 .ts206p14{position:absolute;left:335px;top:164px;}
 .ts206p15{position:absolute;left:335px;top:183px;}
 .ts206p17{position:absolute;left:335px;top:201px;}
 .ts206p18{position:absolute;left:335px;top:220px;}
 .ts206p19{position:absolute;left:335px;top:238px;}
 .ts206p20{position:absolute;left:335px;top:256px;}
 .ts206p21{position:absolute;left:335px;top:275px;}
 .ts206p23{position:absolute;left:335px;top:293px;}
 .ts206p24{position:absolute;left:335px;top:312px;}
 .ts206p25{position:absolute;left:335px;top:330px;}
 .ts206p26{position:absolute;left:335px;top:348px;}
 .ts206p27{position:absolute;left:335px;top:367px;}
 .ts206p29{position:absolute;left:335px;top:385px;}
 .ts206p30{position:absolute;left:335px;top:404px;}
 .ts206p31{position:absolute;left:335px;top:422px;}
 .ts206p33{position:absolute;left:335px;top:440px;}
 .ts206p34{position:absolute;left:335px;top:459px;}
 .ts206p35{position:absolute;left:335px;top:477px;}
 .ts206p36{position:absolute;left:335px;top:496px;}
 .ts206p38{position:absolute;left:335px;top:514px;}
 .ts206p41{position:absolute;left:335px;top:532px;}
 .ts206p43{position:absolute;left:335px;top:551px;}
 .ts206p44{position:absolute;left:106px;top:570px;}
 .ts206p46{position:absolute;left:335px;top:570px;}
 .ts206p47{position:absolute;left:335px;top:588px;}
 .ts206p48{position:absolute;left:335px;top:606px;}
 .ts206p50{position:absolute;left:335px;top:625px;}
 .ts206p51{position:absolute;left:335px;top:643px;}
 .ts206p53{position:absolute;left:335px;top:661px;}
 .ts206p54{position:absolute;left:335px;top:680px;}
 .ts206p55{position:absolute;left:335px;top:698px;}
 .ts206p56{position:absolute;left:335px;top:717px;}
 .ts206p57{position:absolute;left:335px;top:735px;}
 .ts206p59{position:absolute;left:335px;top:753px;}
 .ts206p60{position:absolute;left:335px;top:772px;}
 .ts206p62{position:absolute;left:335px;top:790px;}
 .ts206p63{position:absolute;left:106px;top:809px;}
 .ts206p65{position:absolute;left:335px;top:809px;}
 .ts206p66{position:absolute;left:335px;top:827px;}
 .ts206p67{position:absolute;left:335px;top:846px;}
 .ts206p69{position:absolute;left:335px;top:864px;}
 .ts206p70{position:absolute;left:335px;top:882px;}
 .ts206p72{position:absolute;left:335px;top:900px;}
 .ts206p73{position:absolute;left:335px;top:919px;}
 .ts206p74{position:absolute;left:335px;top:937px;}
 .ts206p75{position:absolute;left:335px;top:955px;}
 .ts206p76{position:absolute;left:335px;top:974px;}

 /* Font Styles */
 .ft0p206{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p206{font-weight:normal;}
 .ft2p206{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p206{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p206{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p206{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft6p206{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground206{position:absolute;left:97px;top:568px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index205.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;206 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index207.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground206><img src="./background206.png" width="639" height="487" border="0" alt=""></div>
<div class=ts206p0><span class="ft0p206"> </span></div>
<div class=ts206p1><span class="ft0p206">Gravitybox Schedule Primer<span class="ft1p206"> </span></span></div>
<div class=ts206p3><span class="ft0p206">Page 204&nbsp; </span></div>
<div class=ts206p7><span class="ft2p206"> </span></div>
<div class=ts206p8><span class="ft3p206"> </span></div>
<div class=ts206p9><span class="ft4p206">1998&#45;2004 Gravitybox Software LLC<span class="ft3p206"> </span></span></div>
<div class=ts206p13><span class="ft5p206">This method, given a number of parameters, will return </span></div>
<div class=ts206p14><span class="ft5p206">the next available slot into which the appointment will </span></div>
<div class=ts206p15><span class="ft5p206">fit. Define the parameters start date, start room, start </span></div>
<div class=ts206p17><span class="ft5p206">time, and appointment length and the method will </span></div>
<div class=ts206p18><span class="ft5p206">determine the next fit on the schedule. The return is an </span></div>
<div class=ts206p19><span class="ft5p206">appointment object that is NOT in the ScheduleItems </span></div>
<div class=ts206p20><span class="ft5p206">collections. The object is returned populated with its </span></div>
<div class=ts206p21><span class="ft5p206">Date, Room, and StartTime. No other properties are </span></div>
<div class=ts206p23><span class="ft5p206">set. You can use this information to add another </span></div>
<div class=ts206p24><span class="ft5p206">appointment to the ScheduleItems collection with its </span></div>
<div class=ts206p25><span class="ft5p206">Add method. You may specify the indexes to ignore </span></div>
<div class=ts206p26><span class="ft5p206">when searching. These indexes include appointments </span></div>
<div class=ts206p27><span class="ft5p206">that may conflict with the specified appointment space </span></div>
<div class=ts206p29><span class="ft5p206">but you do not care about them. The ignore indexes </span></div>
<div class=ts206p30><span class="ft5p206">are numbers separated by a space, comma, colon, or </span></div>
<div class=ts206p31><span class="ft5p206">semicolon. </span></div>
<div class=ts206p33><span class="ft5p206"> </span></div>
<div class=ts206p34><span class="ft5p206">Note: The time resolution is determined by the </span></div>
<div class=ts206p35><span class="ft5p206">ScheduleIncrement property. In other words if the </span></div>
<div class=ts206p36><span class="ft5p206">ScheduleIncrement is 15 minutes and you are testing </span></div>
<div class=ts206p38><span class="ft5p206">an appointment of 20 minutes then 2&#45;15 minute slots </span></div>
<div class=ts206p41><span class="ft5p206">will be needed. </span></div>
<div class=ts206p43><span class="ft5p206"> </span></div>
<div class=ts206p44><span class="ft5p206">GetRoomFromCor </span></div>
<div class=ts206p46><span class="ft6p206">Function GetRoomFromCor(X As Long, Y As </span></div>
<div class=ts206p47><span class="ft6p206">Long, [bInBounds As Boolean = False]) As </span></div>
<div class=ts206p48><span class="ft6p206">Long </span></div>
<div class=ts206p50><span class="ft5p206"> </span></div>
<div class=ts206p51><span class="ft5p206">Given X/Y coordinates in pixels, this property returns </span></div>
<div class=ts206p53><span class="ft5p206">the room that is associated with the position. The </span></div>
<div class=ts206p54><span class="ft5p206">InBounds parameter may be used to specify whether </span></div>
<div class=ts206p55><span class="ft5p206">you wish the specified coordinates to be inside the </span></div>
<div class=ts206p56><span class="ft5p206">client area. When true, the method will only return a </span></div>
<div class=ts206p57><span class="ft5p206">valid value if the coordinates are inside the client area </span></div>
<div class=ts206p59><span class="ft5p206">where the appointments are displayed. Clicking in the </span></div>
<div class=ts206p60><span class="ft5p206">margins will not return a valid value in this case. </span></div>
<div class=ts206p62><span class="ft6p206"> </span></div>
<div class=ts206p63><span class="ft5p206">GetTimeFromCor </span></div>
<div class=ts206p65><span class="ft6p206">Function GetTimeFromCor(X As Long, Y As </span></div>
<div class=ts206p66><span class="ft6p206">Long, [bInBounds As Boolean = False]) As </span></div>
<div class=ts206p67><span class="ft6p206">Date </span></div>
<div class=ts206p69><span class="ft6p206"> </span></div>
<div class=ts206p70><span class="ft5p206">Given X/Y coordinates in pixels, this property returns </span></div>
<div class=ts206p72><span class="ft5p206">the time that is associated with the position. The </span></div>
<div class=ts206p73><span class="ft5p206">InBounds parameter may be used to specify whether </span></div>
<div class=ts206p74><span class="ft5p206">you wish the specified coordinates to be inside the </span></div>
<div class=ts206p75><span class="ft5p206">client area. When true, the method will only return a </span></div>
<div class=ts206p76><span class="ft5p206">valid value if the coordinates are inside the client area </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
